<?

$mapper = Mozg_Mapper::Get('Structure');

$rootElem = $mapper->GetRoot();
if (!$rootElem)
{
	return '';
}
?>
<div id="treeIcons" style="display: none;"><?php echo $this->GetIconSet();?></div>
<ul id="treeStructureFull">
	<li class="root">
		<div class="cat-block root-block" data-id="<?=$rootElem->GetId();?>">
			<i class="doc"></i>
			<a href="<?=htmlspecialchars(Mozg_Router::Get('http')->Create(array('module' => 'front', 'itemId' => $rootElem->GetId())));?>" target="_blank" class="leaf<?=($rootElem->GetId() == $this->cid ? ' here' : '');?>" title="id:<?php echo $rootElem->GetId(); ?>"><?=$rootElem->GetName();?></a>
        </div>
	<?
	echo $this->SubCatList($this->cid, $rootElem->GetId(), $this->expandedElements);
	?>
	</li>
</ul>